Optimal. Leaf size=102 \[ \frac {\text {ArcTan}(\sinh (c+d x))}{b^2 d}-\frac {(2 a-b) \sqrt {a+b} \text {ArcTan}\left (\frac {\sqrt {a+b} \sinh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} b^2 d}+\frac {(a+b) \sinh (c+d x)}{2 a b d \left (a+(a+b) \sinh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3757, 425, 536,
209, 211} \begin {gather*} -\frac {(2 a-b) \sqrt {a+b} \text {ArcTan}\left (\frac {\sqrt {a+b} \sinh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} b^2 d}+\frac {(a+b) \sinh (c+d x)}{2 a b d \left ((a+b) \sinh ^2(c+d x)+a\right )}+\frac {\text {ArcTan}(\sinh (c+d x))}{b^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 211
Rule 425
Rule 536
Rule 3757
Rubi steps
\begin {align*} \int \frac {\text {sech}^5(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{\left (1+x^2\right ) \left (a+(a+b) x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {(a+b) \sinh (c+d x)}{2 a b d \left (a+(a+b) \sinh ^2(c+d x)\right )}-\frac {\text {Subst}\left (\int \frac {a-b+(-a-b) x^2}{\left (1+x^2\right ) \left (a+(a+b) x^2\right )} \, dx,x,\sinh (c+d x)\right )}{2 a b d}\\ &=\frac {(a+b) \sinh (c+d x)}{2 a b d \left (a+(a+b) \sinh ^2(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{b^2 d}-\frac {((2 a-b) (a+b)) \text {Subst}\left (\int \frac {1}{a+(a+b) x^2} \, dx,x,\sinh (c+d x)\right )}{2 a b^2 d}\\ &=\frac {\tan ^{-1}(\sinh (c+d x))}{b^2 d}-\frac {(2 a-b) \sqrt {a+b} \tan ^{-1}\left (\frac {\sqrt {a+b} \sinh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} b^2 d}+\frac {(a+b) \sinh (c+d x)}{2 a b d \left (a+(a+b) \sinh ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.38, size = 203, normalized size = 1.99 \begin {gather*} \frac {(a-b) \left (\left (2 a^2+a b-b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \text {csch}(c+d x)}{\sqrt {a+b}}\right )+4 a^{3/2} \sqrt {a+b} \text {ArcTan}\left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )\right )+(a+b) \left (\left (2 a^2+a b-b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \text {csch}(c+d x)}{\sqrt {a+b}}\right )+4 a^{3/2} \sqrt {a+b} \text {ArcTan}\left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )\right ) \cosh (2 (c+d x))+2 \sqrt {a} b (a+b)^{3/2} \sinh (c+d x)}{2 a^{3/2} b^2 \sqrt {a+b} d (a-b+(a+b) \cosh (2 (c+d x)))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(272\) vs.
\(2(90)=180\).
time = 2.45, size = 273, normalized size = 2.68
method | result | size |
derivativedivides | \(\frac {\frac {2 \arctan \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{b^{2}}-\frac {2 \left (\frac {\frac {b \left (a +b \right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}-\frac {b \left (a +b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a}}{a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a}+\frac {\left (2 a^{2}+a b -b^{2}\right ) \left (-\frac {\left (\sqrt {b \left (a +b \right )}-b \right ) \arctanh \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {b \left (a +b \right )}-a -2 b \right ) a}}\right )}{2 a \sqrt {b \left (a +b \right )}\, \sqrt {\left (2 \sqrt {b \left (a +b \right )}-a -2 b \right ) a}}+\frac {\left (\sqrt {b \left (a +b \right )}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {b \left (a +b \right )}+a +2 b \right ) a}}\right )}{2 a \sqrt {b \left (a +b \right )}\, \sqrt {\left (2 \sqrt {b \left (a +b \right )}+a +2 b \right ) a}}\right )}{2}\right )}{b^{2}}}{d}\) | \(273\) |
default | \(\frac {\frac {2 \arctan \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{b^{2}}-\frac {2 \left (\frac {\frac {b \left (a +b \right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}-\frac {b \left (a +b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a}}{a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a}+\frac {\left (2 a^{2}+a b -b^{2}\right ) \left (-\frac {\left (\sqrt {b \left (a +b \right )}-b \right ) \arctanh \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {b \left (a +b \right )}-a -2 b \right ) a}}\right )}{2 a \sqrt {b \left (a +b \right )}\, \sqrt {\left (2 \sqrt {b \left (a +b \right )}-a -2 b \right ) a}}+\frac {\left (\sqrt {b \left (a +b \right )}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {b \left (a +b \right )}+a +2 b \right ) a}}\right )}{2 a \sqrt {b \left (a +b \right )}\, \sqrt {\left (2 \sqrt {b \left (a +b \right )}+a +2 b \right ) a}}\right )}{2}\right )}{b^{2}}}{d}\) | \(273\) |
risch | \(\frac {{\mathrm e}^{d x +c} \left (a +b \right ) \left ({\mathrm e}^{2 d x +2 c}-1\right )}{b d a \left (a \,{\mathrm e}^{4 d x +4 c}+b \,{\mathrm e}^{4 d x +4 c}+2 a \,{\mathrm e}^{2 d x +2 c}-2 b \,{\mathrm e}^{2 d x +2 c}+a +b \right )}+\frac {i \ln \left ({\mathrm e}^{d x +c}+i\right )}{d \,b^{2}}-\frac {i \ln \left ({\mathrm e}^{d x +c}-i\right )}{d \,b^{2}}-\frac {\sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a +b}-1\right )}{4 a^{2} d b}+\frac {\sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a +b}-1\right )}{2 a d \,b^{2}}+\frac {\sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a +b}-1\right )}{4 a^{2} d b}-\frac {\sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a +b}-1\right )}{2 a d \,b^{2}}\) | \(329\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1078 vs.
\(2 (90) = 180\).
time = 0.39, size = 2140, normalized size = 20.98 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {sech}^{5}{\left (c + d x \right )}}{\left (a + b \tanh ^{2}{\left (c + d x \right )}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\mathrm {cosh}\left (c+d\,x\right )}^5\,{\left (b\,{\mathrm {tanh}\left (c+d\,x\right )}^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________